﻿<Window x:Class="SABnzbdNET.Dialogs.Main"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:uc="clr-namespace:SABnzbdNET.Views"
    xmlns:av="http://schemas.codeplex.com/wpfcontrib/xaml/presentation"
    Title="SABnzbdNET" Height="450" Width="600" Icon="pack://application:,,,/Graphics/SABnzbd.ico" ResizeMode="CanMinimize" WindowState="Normal" WindowStartupLocation="CenterScreen"
    StateChanged="OnStateChanged" IsVisibleChanged="OnIsVisibleChanged" Loaded="Window_Loaded">
    <Window.TaskbarItemInfo>
        <TaskbarItemInfo Description="SABnzbdNET" ThumbnailClipMargin="5">
            <TaskbarItemInfo.ThumbButtonInfos>
                <ThumbButtonInfoCollection>
                    <ThumbButtonInfo x:Name="btnThumbRefresh" DismissWhenClicked="False"
                                     Description="Refresh" Click="btnThumbRefresh_Click" 
                                     ImageSource="/SABnzbdNET;component/Graphics/Toolbar/Refresh.ico" />
                    <ThumbButtonInfo x:Name="btnThumbStart" DismissWhenClicked="False" 
                                     Description="Start" Click="btnThumbStart_Click" 
                                     ImageSource="/SABnzbdNET;component/Graphics/Toolbar/Download.ico" />
                    <ThumbButtonInfo x:Name="btnThumbPause" DismissWhenClicked="False"
                                     Description="Pause" Click="btnThumbPause_Click"
                                     ImageSource="/SABnzbdNET;component/Graphics/Toolbar/Close.ico" />
                </ThumbButtonInfoCollection>
            </TaskbarItemInfo.ThumbButtonInfos>
        </TaskbarItemInfo>
    </Window.TaskbarItemInfo>
    <Grid>
        <uc:Toolbar x:Name="Toolbar" Margin="0,0,0,0" VerticalAlignment="Top"></uc:Toolbar>
        <uc:ServerStatus x:Name="ServerStatus" Margin="10,65,10,25" VerticalAlignment="Stretch" />
        <StatusBar Height="25" Margin="0,0,0,0" Name="statusBar" VerticalAlignment="Bottom">
            <StatusBarItem>
                <TextBlock Name="textError"></TextBlock>
            </StatusBarItem>
        </StatusBar>
        <av:NotifyIcon Icon="pack://application:,,,/Graphics/SABnzbd.ico" Text="SABnzbdNET" Name="notifyIcon" MouseLeftButtonUp="notifyIcon_MouseLeftButtonUp" BalloonTipIcon="Info">
            <FrameworkElement.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Restore" Name="menuRestore" Click="menuRestore_Click" />
                    <MenuItem Header="Update" Name="menuUpdate" Click="menuUpdate_Click" />
                    <MenuItem Header="Close" Name="menuClose" Click="menuClose_Click" />
                </ContextMenu>
            </FrameworkElement.ContextMenu>
        </av:NotifyIcon>
    </Grid>
</Window>
